;;2010/10/24 00:47:16

(provide 'zhang_skeleton)

;;===================the latex article skeleton=================
(define-skeleton latex-article-skeleton
"Input a latex article skeleton into current buffer"
  nil
  "\% -*- coding: utf-8 -*-\n"
  "% Change winfonts to cjkfonts to use arphic fonts.\n"
  "% Change winfonts to adobefonts to use Adobe fonts with xelatex.\n"
  \n
  "\\RequirePackage{amssymb}\n"
  "\\documentclass[winfonts,UTF8,cs4size,a4paper,fancyhdr,fntef,hyperref]{ctexart}\n"
  "\\usepackage{amsmath,amsfonts,amsthm}\n"
  "\\usepackage{latexsym}\n"
  \n
  "\\begin{document}\n"
  \n
  "\\title{\LaTeX~中文文档模板}\n"
  "\\author{作者}\n"
  "\\date{\\today{}}\n"
  \n
  "\\maketitle\n"
  "\\tableofcontents\n"
  \n
  "\\section{前言}\n"
  \n
  "\\section{正文}\n"
  \n
  "\\end{document}\n"
  )
(global-set-key "\C-cl" 'latex-article-skeleton)
;;=====================================================
;;set org file skeleton
(define-skeleton org-normal-skeleton
"Input a latex article skeleton into current buffer"
  nil
  "\#-*- coding: utf-8 -*-\n"
  "\#\+STARTUP: showall"
)
(global-set-key "\C-co" 'org-normal-skeleton)
;;=====================================================
;;set org tex file skeleton
(define-skeleton org-latex-skeleton
"Input a latex article skeleton into current buffer"
  nil
  "\#-*- coding: utf-8 -*-\n"
  "\#\+STARTUP: showall\n"
  "\#\+LaTeX_CLASS: ctexart\n"
  "\#\+LaTeX_CLASS_OPTIONS: \[winfonts,UTF8,cs4size,a4paper,fancyhdr,fntef,hyperref\]\n"
  "\#\+LATEX_HEADER:\\usepackage\{amsmath,amsfonts,amsthm,amssymb,latexsym\}\n"
  "\#\+TITLE: "
)
(global-set-key "\C-ct" 'org-latex-skeleton)
